/**
 * Created by zhangqingxi on 2017-04-06.
 */
var modelPath=ROOT_PATH+'/environmental/abnormalDischarge/report/';

//初始化部门
function initDept() {

    $('#deptId').combotree({
        url: ROOT_PATH+'/permission/department/getDepartmentTree.shtml?parentId=0',
        required:true,
        editable:false,
        prompt:'请选择'
    });
}
//初始化 废物类别
function initWasteType() {
    $('#wasteTypeId').combobox({
        url:dictionaryByCode+wasteType,
        prompt:'请选择',
        required:true,
        editable:false,
        valueField:'id',
        textField:'text'
    });
}
//初始化 排放去向
function initEmissionFate() {
    $('#emissionFateId').combobox({
        url:dictionaryByCode+emissionFate,
        prompt:'请选择',
        required:true,
        editable:false,
        valueField:'id',
        textField:'text'
    });
}
function initCurrentDate() {
    $('#evaluationTime').textbox('setValue',$.getNowFormatDate())
}
